tools: Fix build failure with gcc 4.4.3-4ubuntu5
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Fri, 20 May 2011 17:20:09 +0000 (18:20 +0100)
committerGeorge Dunlap <george.dunlap@eu.citrix.com>
Fri, 20 May 2011 17:20:09 +0000 (18:20 +0100)
c/s 23253:a3db6b91f32d causes build failure with gcc 4.4.3-4ubuntu5,
as the compiler can't figure out that the value returned is always
a string literal.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
tools/libxl/libxl_dm.c

index 952cb7d0011f5b5ec32ba23c5cab1df13059b9dc..47a51c870855525b609652dac64f4c907608d1ed 100644 (file)
@@ -773,7 +773,7 @@ int libxl__create_device_model(libxl__gc *gc,
     path = libxl__sprintf(gc, "/local/domain/%d/hvmloader", info->domid);
     xs_mkdir(ctx->xsh, XBT_NULL, path);
     libxl__xs_write(gc, XBT_NULL, libxl__sprintf(gc, "%s/bios", path),
-                    libxl__domain_bios(gc, info));
+                    "%s", libxl__domain_bios(gc, info));
 
     path = libxl__sprintf(gc, "/local/domain/0/device-model/%d", info->domid);
     xs_mkdir(ctx->xsh, XBT_NULL, path);